﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace SolutionFramework
{
    public class TotalGenerationStats 
    {
        public int GeneratorsSucceeded { get; set; }
        public int GeneratorsFailed { get; set; }
        public Dictionary<string, GeneratorStats> GeneratorStats { get; private set; }

        public TotalGenerationStats()
        {
            this.GeneratorStats = new Dictionary<string, GeneratorStats>();
        }
    }

    public class GeneratorStats
    {
        public string GeneratorName;
        public Dictionary<string, ProjectBuildStats> BuildStats { get; private set; }
        public int ProjectsSucceeded { get; set; }
        public int ProjectsFailed { get; set; }
        public int ProjectsUpToDate { get; set; }
        public int ProjectsSkipped { get; set; }

        public GeneratorStats()
        {
            this.BuildStats = new Dictionary<string, ProjectBuildStats>();
        }
    }

    public class ProjectBuildStats
    {
        public string ProjectName { get; set; }
        public string Configuration { get; set; }
        public string Platform { get; set; }
        public int Errors { get; set; }
    }
}
